#include<stdio.h>
void main()
{
	int a[3][5],i,j,min;
    for ( i=0;i<3;i++ )
		for ( j=0;j<5;j++ )
			scanf("%d",&a[i][j]);
       for ( j=0;j<5;j++,printf("min=%d ",min) ) 
     for ( i=1,min=a[0][j];i<3;i++ )
     if ( min>a[i][j] ) 
		 min=a[i][j];
     printf("\n");

}